﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    public enum CM
    {
        北京烤鸭,
        四川麻婆豆腐
    }
    class CookRobot:Robot
    {
        private string cm;
        public string CM
        {
            get { return this.cm; }
            set { this.cm = value; }
        }
        public CookRobot(string name, string cm) : base(name)
        {
            this.cm = cm;
        }
        public override void Working()
        {
            Console.WriteLine("我是{0}机器人，炒的菜是{1}",this.Name,this.cm);
        }
    }
}
